<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://qzone.qq.com/251303704/pagination" prefix="p" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>"/>
		<meta charset="UTF-8">
		<title>衬衫--易打理</title>
		<link rel="stylesheet" href="css/dali.css?_<%=new Date().getTime() %>">
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript">
			$(function(){
				$(".nav>.xunhuan").hover(function(){
					var index=$(".nav>.xunhuan").index(this);
					$(".nav .xunhuan div:eq("+index+")").toggle();
				})
			})
		</script>
  </head>
  <body>
  	<div id="top">
		<!--Total  -->
		<jsp:include page="Total.jsp" />
	</div>
	<!--二级菜单  -->
		<jsp:include page="menu.jsp" />
    <form action="dali.shtml" method="post" id="form1">
    <div id="middle">
    	<div class="top">
    		<div class="all"><a href="">全部商品</a></div>
    	</div>
    	<div class="shaixuan">
    		<div class="liebiao">
    			<ul>
    				<a href=""><li>默认</li></a>
    				<a href=""><li>销量</li></a>
    				<a href=""><li>好评</li></a>
    				<a href=""><li>最新</li></a>
    				<a href=""><li class="price">价格</li></a>
    				<li><input type="text" class="jgqj"><span class="line">-</span><input type="text" class="jgqj"></li>
    			</ul>
    		</div>
    		<div class="shangpin">
    			<c:if test="${empty dalilist }">
    				<p style="text-align: center;margin-top: 50px;font-size:30px;">抱歉，没有该商品</p>
    			</c:if>
    			<c:if test="${not empty dalilist }">
	    			<c:forEach items="${dalilist }" var="dali">
		    			<dl>
		    				<dt><a href="GouMaiShopping.shtml?dali=${dali.s_id }"><img src="images/dali/${dali.s_images }" style="width:232px;height: 232px;"></a></dt>
		    				<dd class="redname"><a href="GouMaiShopping.shtml?dali=${dali.s_id }">${dali.s_name}</a></dd>
		    				<dd class="price">售价￥<span>${dali.s_price}</span></dd>
		    			</dl>
	    			</c:forEach>
    			</c:if>
    			<input type="hidden" name="menuid" value="${dalilist[0].s_mid }"/>
    		</div>
    		<p:page pageBean="${pageBean }"/>
    		
    	</div>
   </div>
   </form>
 	<div class="kefu">
 		<p><img src="images/index/kefu.jpg" style="width:1200px;"></p>
 	</div>
 	<div class="yejiao">
 		<p><img src="images/index/yejiao.jpg" sytle="width:1049px;"></p>
 	</div>
 </body>
 </body>
</html>
